package com.urfresh.sp.flume.dto.v2;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;

/**
 * Created by urfresh.mark on 2016/10/9.
 */
public class CartClick extends AppBaseInfo{

    static final String ADD = "add";
    static final String REMOVE = "remove";
    static final String LIST = "data";
    static final String PRODUCT = "product";

    @JSONField(ordinal = 6)
    @ApiModelProperty(value = "点击行为，加入add/移除remove", required = true)
    String action;


    @JSONField(ordinal = 7)
    @ApiModelProperty(value = "点击行为发生的页面，data/productId", required = true)
    String page;

    @JSONField(ordinal = 8)
    @ApiModelProperty(value = "商品id", required = true)
    String productId;


    public CartClick() {
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public CartClick(String product, String action, String page) {
        this.productId = product;
        this.action = action;
        this.page = page;
    }
}
